package com.system.log.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;
@Entity
@Table(name="t_log")
public class Log {
	private static final long serialVersionUID = 1024792477652984770L;  
	private Long logId;
    private Date createdate;//日期  
    private String content;//日志内容  
    private int operationType;
    private String remarks; 
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getLogId() {
		return logId;
	}
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	public Date getCreatedate() {
		return createdate;
	}
	public String getContent() {
		return content;
	}

	public String getRemarks() {
		return remarks;
	}
	public int getOperationType() {
		return operationType;
	}
	public void setLogId(Long logId) {
		this.logId = logId;
	}
	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	public void setOperationType(int operationType) {
		this.operationType = operationType;
	}
	
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}    
}
